package com.zhongyu.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Configuration;

import java.time.LocalDateTime;

@Configuration
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Panyingpankui {
	/** 未审核 */
	public static final Integer STATE_CREATE =0;
	/** 已审核 */
	public static final Integer STATE_CHECK = 1;
	/** 盘盈 */
	public static final Integer TYPE_YING = 1;
	/** 盘亏 */
	public static final Integer TYPE_KUI = 2;

	public static Integer getStateCreate() {
		return STATE_CREATE;
	}

	public static Integer getStateCheck() {
		return STATE_CHECK;
	}

	public static Integer getTypeYing() {
		return TYPE_YING;
	}

	public static Integer getTypeKui() {
		return TYPE_KUI;
	}

	/**
	 * 盘盈盘亏登记表主键
	 */
	private Integer id;


	/**
	 * 商品ID
	 */
	private Integer goodsId;

	/**
	 * 仓库ID
	 */
	private Integer storeId;

	/**
	 * 盘盈盘亏数量
	 */
	private Integer num;

	/**
	 * 类型1：盘盈 2：盘亏
	 */
	private Integer type;

	/**
	 * 登记日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createtime;
	/**
	 * 审核日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime checktime;

	public LocalDateTime getChecktime() {
		return checktime;
	}

	public LocalDateTime setChecktime(LocalDateTime checktime) {
		this.checktime = checktime;
		return checktime;
	}


	/**
	 * 登记人
	 */
	private Integer creater;

	/**
	 * 审核人
	 */
	private Integer checker;

	/**
	 * 状态：0未审核  1已审核
	 */
	private Integer state;

	public Integer getState() {
		return state;
	}

	public Integer setState(Integer state) {
		this.state = state;
		return state;
	}

	/**
	 * 备注
	 */
	private String remark;

	@TableField(exist = false)
	private Goods goods;

	@TableField(exist = false)
	private Store store;
	@TableField(exist = false)
private User user;

}
